
    /**  
    * @Title: CafeScheduleService.java
    * @Package com.efast.cafe.commponent.job.service
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2018年9月12日
    * @version V1.0  
    */
    
package com.efast.cafe.commponent.job.service;

import java.util.List;
import java.util.Map;

import com.efast.cafe.commponent.job.bean.ScheduleJobBean;
import com.efast.cafe.commponent.job.bean.ScheduleJobQueryBean;
import com.efast.cafe.framework.bean.QueryPageBase;

/**
    * @ClassName: CafeScheduleService
    * @Description: TODO(这里用一句话描述这个类的作用)
    * @author Administrator
    * @date 2018年9月12日
    *
    */

public interface CafeScheduleService {

	/**
	 * 
	    * @Title: addjob
	    * @Description:新增job
	    * @param @param jobClassName
	    * @param @param jobGroupName
	    * @param @param cronExpression    参数
	    * @return void    返回类型
	    * @throws
	 */
	public void addjob(String jobName,String jobClassName,String cronExpression,String jobDesc,Map<String, Object> params,boolean startNow)throws Exception ;
	
	public void modifyJob(String jobName,String jobClassName,String cronExpression,String jobDesc,Map<String, Object> params,boolean startNow)throws Exception ;
	
	/**
	 * 
	    * @Title: pausejob
	    * @Description: 暂停job
	    * @param @param jobClassName
	    * @param @param jobGroupName    参数
	    * @return void    返回类型
	    * @throws
	 */
	public void pausejob(String jobName)throws Exception;
	
	
	public void pauseAllJobs()throws Exception;
	/**
	 * 
	    * @Title: resumejob
	    * @Description: 恢复job
	    * @param @param jobClassName
	    * @param @param jobGroupName    参数
	    * @return void    返回类型
	    * @throws
	 */
	public void resumejob(String jobName)throws Exception;
	
	public void resumeAllJobs()throws Exception;
	
	public void triggerJob(String jobName)throws Exception;
	
	public void deletejob(String jobName)throws Exception;
	
	public  Map<String, Object> getSchedulerInfo();
	
	public List<ScheduleJobBean> getAllJobs()throws Exception;
	
	public ScheduleJobBean queryDetail(String jobName)throws Exception;
	
	public ScheduleJobQueryBean queryJobPageList(ScheduleJobQueryBean queryBean);
}
